<template>
  <div>
    <h1>玛卡巴卡推着小推车来洗脸啦！！！</h1>
    <h3>有以下景点</h3>
    <hr />
    <table-node @click="mybtn" :list="list" :listB="listB"/>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [
        { id: "name", name: "给谁洗脸" },
        { id: "his", name: "洗几次" },
        { id: "road", name: "用热水还是冷水" },
      ],
      listB: [
        { id: "001", name: "给唔西迪西洗脸",his:"2次",road:"蓝色的依古·比古" },
        { id: "002", name: "给小点点洗脸",his:"3次",road:"长得像泰迪熊" },
        { id: "003", name: "给依古·比古洗脸",his:"4次",road:"，他是花园的访客，" },
        { id: "004", name: "给飞飞鱼洗脸",his:"10次",road:"夜晚会回到他的小船上" },
        { id: "005", name: "给汤姆布利柏洗脸",his:"10次",road:"汤姆布利柏·安、汤姆布利柏·哦、汤姆布利柏·咦" },
      ],
    };
  },
  methods:{
      mybtn(id){
          console.log(id)
      }
  }
};
</script>
